import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        myToken: window.localStorage.getItem('myToken'),
    },
    mutations: {
        setToken(state, token) {
            state.myToken = token
            window.localStorage.setItem('myToken', token)
        },
    },
    actions: {},
    modules: {}
})
